#include "command.h"

void command_ls(int netFD){

    int num;
    recv(netFD, &num, sizeof(num), MSG_WAITALL);
    char buf[128] = { 0 };
    for(int i = 0; i < num; i++){
        recv(netFD, buf, sizeof(buf), MSG_WAITALL);
        printf("%s ", buf);
        bzero(buf, sizeof(buf));
    }
    printf("\n");

}
